<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <!-- TopJUI框架样式 -->
    <link type="text/css" href="../../topjui/css/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="../../topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme"/>
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="../../static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- layui框架样式 -->
    <link type="text/css" href="../../static/plugins/layui/css/layui.css" rel="stylesheet"/>
    <!-- jQuery相关引用 -->
    <script type="text/javascript" src="../../static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../static/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
    <script type="text/javascript" src="../../static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="../../topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="../../topjui/js/locale/topjui.lang.zh_CN.js"></script>
    <!-- layui框架js -->
    <script type="text/javascript" src="../../static/plugins/layui/layui.js" charset="utf-8"></script>
</head>

<body>
<div class="topjui-container">
    <fieldset>
        <legend>yyyy-MM-dd格式</legend>
    </fieldset>
    <div class="topjui-row">
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">出生日期</label>
            <div class="topjui-input-block"><input type="text" name="birthday" data-toggle="topjui-datebox">
            </div>
        </div>
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">入职日期</label>
            <div class="topjui-input-block">
                <input type="text" name="jobDate"
                       data-toggle="topjui-datebox"
                       data-options="required:true,prompt:'入职日期是必填字段'">
                </td>
            </div>
        </div>
    </div>

    <fieldset>
        <legend>YYYY-mm格式</legend>
    </fieldset>
    <div class="topjui-row">
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">出生年月</label>
            <div class="topjui-input-block">
                <input type="text" name="birthday"
                       data-toggle="topjui-datebox"
                       data-options="pattern:'YYYY-mm'">
            </div>
        </div>
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">入职年月</label>
            <div class="topjui-input-block">
                <input type="text" name="jobDate"
                       data-toggle="topjui-datebox"
                       data-options="required:true,pattern:'YYYY-mm',prompt:'入职年月是必填字段'">
                </td>
            </div>
        </div>
    </div>

    <fieldset>
        <legend>YYYY格式</legend>
    </fieldset>
    <div class="topjui-row">
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">出生年度</label>
            <div class="topjui-input-block">
                <input type="text" name="birthday"
                       data-toggle="topjui-datebox"
                       data-options="pattern:'YYYY'">
            </div>
        </div>
        <div class="topjui-col-sm6">
            <label class="topjui-form-label">入职年度</label>
            <div class="topjui-input-block">
                <input type="text" name="jobDate"
                       data-toggle="topjui-datebox"
                       data-options="required:true,pattern:'YYYY',prompt:'入职年度是必填字段'">
            </div>
        </div>
    </div>
</div>
</body>
</html>